package com.wlyuan.open.assembler;

import com.wlyuan.open.order.dto.OpenOrderCombineDTO;
import com.wlyuan.transport.dto.CombineByOrdersDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

public class WaybillAssembler {
    @Mapper(uses = {
    })
    public interface Assembler {
        CombineByOrdersDTO assemble(OpenOrderCombineDTO combine);
    }

    private static final Assembler ASSEMBLER = Mappers.getMapper(Assembler.class);

    public static CombineByOrdersDTO assemble(OpenOrderCombineDTO combine) {
        return ASSEMBLER.assemble(combine);
    }
}
